﻿<UserControl 
    x:Class="DiscoveryLogic.UI.Securities.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d">
    <UserControl.Resources>
        <Style x:Key="TextBoxStyle" TargetType="TextBox">
            <Setter Property="BorderThickness" Value="2"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="BorderBrush" Value="#FFFFA500"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBox">
                        <Grid x:Name="RootElement">
                            <Border x:Name="Border" Opacity="1" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5,5,5,5" BorderBrush="#4C00FFF1" Background="#FF606060">
                                <ScrollViewer Height="Auto" x:Name="ContentElement" Width="Auto" BorderThickness="0" IsTabStop="False" Padding="{TemplateBinding Padding}" VerticalAlignment="Top" Margin="5,5,5,5"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LoggedOutGrid" Width="544" HorizontalAlignment="Left" 
          RenderTransformOrigin="0.5,0.5" Margin="-12,0,0,0">
        <Grid.RenderTransform>
            <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform/>
            </TransformGroup>
        </Grid.RenderTransform>
        <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="45" Stroke="#FFFFA500" StrokeThickness="2" RadiusX="10" RadiusY="10" x:Name="rectangle"/>
        <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" VerticalAlignment="Stretch" d:LayoutOverrides="Height">
            <TextBlock Text="User:" Foreground="#FFFFA500" Margin="20,10,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/>
            <TextBox x:Name="txtUser" Style="{StaticResource TextBoxStyle}" Width="100" VerticalAlignment="Center"/>
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="20,10,0,0" FontSize="20" Text="Password:" Foreground="#FFFFA500" />
            <TextBox x:Name="txtPassword" Style="{StaticResource TextBoxStyle}" Width="100"  VerticalAlignment="Center"/>
            <Button Content="Log in" Margin="20,0,0,0" VerticalAlignment="Center" 
                    HorizontalAlignment="Center" FontSize="20" Background="#FFFFA500" Click="LogIn_Button_Click" x:Name="LogIn_Button" Width="Auto"/>
        </StackPanel>
    </Grid>
</UserControl>
